<?php
namespace haibao\classlibrary\tv;

use \haibao\frame\Environment;

class Config extends \haibao\classlibrary\Config {
    
    const ALIPAY_PAYMENT_CONFIG = 'ALIPAY_PAYMENT_CONFIG';

    const SMS_CONTENT_FOR_REGISTER = 'SMS_CONTENT_FOR_REGISTER';
    
    const TV_CONFIG_TVCOOKIE = 'TV_CONFIG_TVCOOKIE';
}

Config::load(array(
    Config::SMS_CONTENT_FOR_REGISTER => '验证码为%s，你正在使用手机号注册TV海报帐号，感谢关注TV海报。',
    Config::ALIPAY_PAYMENT_CONFIG => array(
        'partner' => '2088421657941827',
        'sellerId' => '2088421657941827',
        'key' => 'psg30lyu1ydmeop7d692sl5rdr44p7v2',
        'notifyUrl' => \haibao\classlibrary\Config::getConfig(Config::CLASSLIBRARY_CONFIG_HOST_USER_TVHAIBAO).'/payment/alipaynotify.html',
        'returnUrl' => \haibao\classlibrary\Config::getConfig(Config::CLASSLIBRARY_CONFIG_HOST_USER_TVHAIBAO).'/payment/alipayreturn.html',
    ),
    Config::TV_CONFIG_TVCOOKIE => array(
        'cookie_key' => 'tv_sid',
        'cookie_expire' => 604800,	// 一周
        'cookie_path' => '/',
        'cookie_domain' => '.tv.cn'
    ),
));